import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    user:''
  },
  getters: {
    user: state => state.user
  },
  mutations: {
    SET_USER:(state,user)=>{
      state.user = user,
      sessionStorage.setItem("user",JSON.stringify(user));
    }
  },
  actions: {
  },
  modules: {
  }
})
